<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>

<link href="<%= request.getContextPath() + "/css/bloques.css" %>" rel="stylesheet" type="text/css">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Activar programas</title>
  </head>
  
  <script language="javascript">
  
      function fboton(){
      document.frmActivarPrograma.activar.disabled = false;
      
      }
  
  </script>
  
  <body>
 
    <P></P>
    <P></P>
    <P align="center"></P>
    <P align="center"></P>
    <P align="center"></P>
    <table cellspacing="1" cellpadding="2" border="0" width="80%" align="center">
      <tr>
        <td>
            <P align="center" class="titulosenblanco">ACTIVAR PROGRAMAS</P>
        </td>
      </tr>
    </table>
    <P></P>
    <form name="frmActivarPrograma" action="<%=request.getContextPath()+"/subprogramas/ActivarSubprogramas.do?ori=activar"%>">
     <table  cellspacing="3" cellpadding="2" border="0" width="90%" align="center">
     <tr>
     <td>
     <logic:notPresent scope="request" name="programas">
        <DIV align="center"><%=request.getAttribute("msg")%></DIV>
    </logic:notPresent>
    <logic:present scope="request" name="programas"> 
   <display:table name="requestScope.programas" class="bordesTable"  id="pro" cellpadding="3" cellspacing="1"  style="width:100%" requestURI='<%=request.getContextPath()+"/programas/ActivarProgramas.do"%>'>
     <display:column headerClass="headerTable" title="Programa" class="Numero" sortable="true">
        <bean:write name="pro" property="nombre"/> 
     </display:column>  
     <bean:define id="Codigo" name="pro" property="code"></bean:define>
     <display:column headerClass="headerTable" title="Activar" class="Numero" sortable="false">
        <input type="radio" onclick="fboton()" name="Codigo" value="<%=Codigo%>">
     </display:column>
  </display:table>
 </logic:present>
  </td>
  </tr>
  </table>
    <P></P>
    <table cellspacing="3" cellpadding="2" border="0" width="60%" align="center">
      <tr>
        <td width="33%"><P>&nbsp;
       </P></td>
       <td width="37%">
         <P align="center">
           <input type="hidden" name="ori" value="activar"/>
           <logic:notPresent scope="request" name="programas">
             <input type="submit" name="activar" value="Activar" disabled="disabled"/>
           </logic:notPresent>
           <logic:present scope="request" name="programas">
             <input type="submit" name="activar" value="Activar" disabled="disabled"/>
           </logic:present>
         </P>
         <P align="center">
           <a href="javascript:window.history.back()">
             <img src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>" border="0"/>
           </a>
         </P>
           </a>
         </DIV>
       </td>
        <td width="30%"><P align="center">
    </P></td>
      </tr>
    </table>
    <P></P> 
    </form>
    <P align="center"></P>
  </body>
</html>
